﻿namespace Arms.Domain.Modules.Geography
{
    using System;
    using System.Collections.Generic;

    public class Place : PointBase
    {
        public Place()
        {
            this.PlaceTypes = new HashSet<PlaceType>();
            this.Contacts = new HashSet<Contact>();
        }

        public int CityID { get; set; }
        public string Street { get; set; }
        public string Building { get; set; }
        public string Unit { get; set; }
        public string PostalCode { get; set; }

        #region Navigation

        public virtual City City { get; set; }
        public virtual ICollection<PlaceType> PlaceTypes { get; set; }
        public virtual ICollection<Contact> Contacts { get; set; }

        #endregion
    }
}
